package com.aquan.spring.sample.circul.beans;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class ServiceC {

    @Autowired
    private ServiceA serviceA;

    @Transactional
    public void sayHelloFromC() {
        System.out.println(" --- say hello from C --- ");
    }

    public ServiceA getServiceA() {
        return serviceA;
    }

    public void setServiceA(ServiceA serviceA) {
        this.serviceA = serviceA;
    }
}
